toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (annotationSource != null) 'annotationSource': annotationSource!,
      if (annotationType != null) 'annotationType': annotationType!,
      if (blockingResources != null) 'blockingResources': blockingResources!,
      if (completedExampleCount != null)
        'completedExampleCount': completedExampleCount!,
      if (createTime != null) 'createTime': createTime!,
      if (description != null) 'description': description!,
      if (displayName != null) 'displayName': displayName!,
      if (exampleCount != null) 'exampleCount': exampleCount!,
      if (labelStats != null) 'labelStats': labelStats!.toJson(),
      if (metadata != null) 'metadata': metadata!.toJson(),
      if (name != null) 'name': name!,
    };