toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (annotations != null) 'annotations': annotations!,
  if (arrayItems != null) 'arrayItems': arrayItems!,
  if (constraints != null) 'constraints': constraints!,
  if (enumValues != null) 'enumValues': enumValues!,
  if (index != null) 'index': index!,
  if (mapItems != null) 'mapItems': mapItems!,
  if (name != null) 'name': name!,
  if (recordFields != null) 'recordFields': recordFields!,
  if (type != null) 'type': type!,
  if (typeId != null) 'typeId': typeId!,
  if (typeRef != null) 'typeRef': typeRef!,
};