Field.fromJson constructor

Field.fromJson(
  1. Map json_
)

Implementation

Field.fromJson(core.Map json_)
    : this(
        additionalDetails: json_.containsKey('additionalDetails')
            ? json_['additionalDetails']
                as core.Map<core.String, core.dynamic>
            : null,
        dataType: json_.containsKey('dataType')
            ? json_['dataType'] as core.String
            : null,
        defaultValue:
            json_.containsKey('defaultValue') ? json_['defaultValue'] : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        jsonSchema: json_.containsKey('jsonSchema')
            ? JsonSchema.fromJson(
                json_['jsonSchema'] as core.Map<core.String, core.dynamic>)
            : null,
        key: json_.containsKey('key') ? json_['key'] as core.bool : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nullable: json_.containsKey('nullable')
            ? json_['nullable'] as core.bool
            : null,
        reference: json_.containsKey('reference')
            ? Reference.fromJson(
                json_['reference'] as core.Map<core.String, core.dynamic>)
            : null,
      );