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,
        field:
            json_.containsKey('field') ? json_['field'] 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,
        nullable: json_.containsKey('nullable')
            ? json_['nullable'] as core.bool
            : null,
        readonly: json_.containsKey('readonly')
            ? json_['readonly'] as core.bool
            : null,
      );