Attributes.fromJson constructor

Attributes.fromJson(
  1. Map json_
)

Implementation

Attributes.fromJson(core.Map json_)
    : this(
        businessOwners: json_.containsKey('businessOwners')
            ? (json_['businessOwners'] as core.List)
                .map((value) => ContactInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        criticality: json_.containsKey('criticality')
            ? Criticality.fromJson(
                json_['criticality'] as core.Map<core.String, core.dynamic>)
            : null,
        developerOwners: json_.containsKey('developerOwners')
            ? (json_['developerOwners'] as core.List)
                .map((value) => ContactInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        environment: json_.containsKey('environment')
            ? Environment.fromJson(
                json_['environment'] as core.Map<core.String, core.dynamic>)
            : null,
        operatorOwners: json_.containsKey('operatorOwners')
            ? (json_['operatorOwners'] as core.List)
                .map((value) => ContactInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );