toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (additionalDetails != null) 'additionalDetails': additionalDetails!,
      if (dataType != null) 'dataType': dataType!,
      if (defaultValue != null) 'defaultValue': defaultValue!,
      if (description != null) 'description': description!,
      if (jsonSchema != null) 'jsonSchema': jsonSchema!,
      if (key != null) 'key': key!,
      if (name != null) 'name': name!,
      if (nullable != null) 'nullable': nullable!,
      if (reference != null) 'reference': reference!,
    };