CounterStructuredNameAndMetadata.fromJson constructor

CounterStructuredNameAndMetadata.fromJson(
  1. Map _json
)

Implementation

CounterStructuredNameAndMetadata.fromJson(core.Map _json)
    : this(
        metadata: _json.containsKey('metadata')
            ? CounterMetadata.fromJson(
                _json['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name')
            ? CounterStructuredName.fromJson(
                _json['name'] as core.Map<core.String, core.dynamic>)
            : null,
      );