DerivedMetric.fromJson constructor

DerivedMetric.fromJson(
  1. Map json_
)

Implementation

DerivedMetric.fromJson(core.Map json_)
    : this(
        denominator: json_.containsKey('denominator')
            ? LocalizedString.fromJson(
                json_['denominator'] as core.Map<core.String, core.dynamic>)
            : null,
        numerator: json_.containsKey('numerator')
            ? LocalizedString.fromJson(
                json_['numerator'] as core.Map<core.String, core.dynamic>)
            : null,
      );