AdaptiveMtDataset.fromJson constructor

AdaptiveMtDataset.fromJson(
  1. Map json_
)

Implementation

AdaptiveMtDataset.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,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );