$MonitoredResourceMetadata.fromJson constructor Null safety

$MonitoredResourceMetadata.fromJson(
  1. Map _json
)

Implementation

$MonitoredResourceMetadata.fromJson(core.Map _json)
    : this(
        systemLabels: _json.containsKey('systemLabels')
            ? _json['systemLabels'] as core.Map<core.String, core.dynamic>
            : null,
        userLabels: _json.containsKey('userLabels')
            ? (_json['userLabels'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
      );