toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dataType != null) 'dataType': dataType!,
      if (id != null) 'id': id!,
      if (labels != null)
        'labels': labels!.map((value) => value.toJson()).toList(),
      if (lookupDetails != null) 'lookupDetails': lookupDetails!.toJson(),
      if (multipleValuesDisallowed != null)
        'multipleValuesDisallowed': multipleValuesDisallowed!,
      if (name != null) 'name': name!,
      if (relationshipDetails != null)
        'relationshipDetails': relationshipDetails!.toJson(),
    };