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, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        origin: json_.containsKey('origin')
            ? json_['origin'] as core.String
            : null,
      );