Dataset.fromJson constructor

Dataset.fromJson(
  1. Map json_
)

Implementation

Dataset.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        exampleCount: json_.containsKey('exampleCount')
            ? json_['exampleCount'] as core.int
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sourceLanguageCode: json_.containsKey('sourceLanguageCode')
            ? json_['sourceLanguageCode'] as core.String
            : null,
        targetLanguageCode: json_.containsKey('targetLanguageCode')
            ? json_['targetLanguageCode'] as core.String
            : null,
        testExampleCount: json_.containsKey('testExampleCount')
            ? json_['testExampleCount'] as core.int
            : null,
        trainExampleCount: json_.containsKey('trainExampleCount')
            ? json_['trainExampleCount'] as core.int
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        validateExampleCount: json_.containsKey('validateExampleCount')
            ? json_['validateExampleCount'] as core.int
            : null,
      );