toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (displayName != null) 'displayName': displayName!,
      if (exampleCount != null) 'exampleCount': exampleCount!,
      if (name != null) 'name': name!,
      if (sourceLanguageCode != null)
        'sourceLanguageCode': sourceLanguageCode!,
      if (targetLanguageCode != null)
        'targetLanguageCode': targetLanguageCode!,
      if (testExampleCount != null) 'testExampleCount': testExampleCount!,
      if (trainExampleCount != null) 'trainExampleCount': trainExampleCount!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (validateExampleCount != null)
        'validateExampleCount': validateExampleCount!,
    };