GoogleCloudChannelV1CustomerConstraints.fromJson constructor

GoogleCloudChannelV1CustomerConstraints.fromJson(
  1. Map json_
)

Implementation

GoogleCloudChannelV1CustomerConstraints.fromJson(core.Map json_)
    : this(
        allowedCustomerTypes: json_.containsKey('allowedCustomerTypes')
            ? (json_['allowedCustomerTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        allowedRegions: json_.containsKey('allowedRegions')
            ? (json_['allowedRegions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        promotionalOrderTypes: json_.containsKey('promotionalOrderTypes')
            ? (json_['promotionalOrderTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );