toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (P_ref != null) '\$ref': P_ref!,
      if (additionalProperties != null)
        'additionalProperties': additionalProperties!,
      if (annotations != null) 'annotations': annotations!,
      if (default_ != null) 'default': default_!,
      if (deprecated != null) 'deprecated': deprecated!,
      if (description != null) 'description': description!,
      if (enum_ != null) 'enum': enum_!,
      if (enumDeprecated != null) 'enumDeprecated': enumDeprecated!,
      if (enumDescriptions != null) 'enumDescriptions': enumDescriptions!,
      if (format != null) 'format': format!,
      if (id != null) 'id': id!,
      if (items != null) 'items': items!,
      if (location != null) 'location': location!,
      if (maximum != null) 'maximum': maximum!,
      if (minimum != null) 'minimum': minimum!,
      if (pattern != null) 'pattern': pattern!,
      if (properties != null) 'properties': properties!,
      if (readOnly != null) 'readOnly': readOnly!,
      if (repeated != null) 'repeated': repeated!,
      if (required != null) 'required': required!,
      if (type != null) 'type': type!,
      if (variant != null) 'variant': variant!,
    };