toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (default_ != null) 'default': default_!,
      if (description != null) 'description': description!,
      if (enum_ != null) 'enum': enum_!,
      if (example != null) 'example': example!,
      if (format != null) 'format': format!,
      if (items != null) 'items': items!,
      if (maxItems != null) 'maxItems': maxItems!,
      if (maxLength != null) 'maxLength': maxLength!,
      if (maxProperties != null) 'maxProperties': maxProperties!,
      if (maximum != null) 'maximum': maximum!,
      if (minItems != null) 'minItems': minItems!,
      if (minLength != null) 'minLength': minLength!,
      if (minProperties != null) 'minProperties': minProperties!,
      if (minimum != null) 'minimum': minimum!,
      if (nullable != null) 'nullable': nullable!,
      if (pattern != null) 'pattern': pattern!,
      if (properties != null) 'properties': properties!,
      if (required != null) 'required': required!,
      if (title != null) 'title': title!,
      if (type != null) 'type': type!,
    };