FieldMetadata.fromJson constructor

FieldMetadata.fromJson(
  1. Map json_
)

Implementation

FieldMetadata.fromJson(core.Map json_)
    : this(
        primary: json_.containsKey('primary')
            ? json_['primary'] as core.bool
            : null,
        source: json_.containsKey('source')
            ? Source.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
        sourcePrimary: json_.containsKey('sourcePrimary')
            ? json_['sourcePrimary'] as core.bool
            : null,
        verified: json_.containsKey('verified')
            ? json_['verified'] as core.bool
            : null,
      );