Relation.fromJson constructor

Relation.fromJson(
  1. Map json_
)

Implementation

Relation.fromJson(core.Map json_)
    : this(
        formattedType: json_.containsKey('formattedType')
            ? json_['formattedType'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? FieldMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        person: json_.containsKey('person')
            ? json_['person'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );