MetricStructuredName.fromJson constructor

MetricStructuredName.fromJson(
  1. Map _json
)

Implementation

MetricStructuredName.fromJson(core.Map _json)
    : this(
        context: _json.containsKey('context')
            ? (_json['context'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        origin: _json.containsKey('origin')
            ? _json['origin'] as core.String
            : null,
      );