Model.fromJson constructor

Model.fromJson(
  1. Map json_
)

Implementation

Model.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        dataset: json_.containsKey('dataset')
            ? json_['dataset'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : 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,
      );