ProductStatusDestinationStatus.fromJson constructor

ProductStatusDestinationStatus.fromJson(
  1. Map json_
)

Implementation

ProductStatusDestinationStatus.fromJson(core.Map json_)
    : this(
        approvedCountries: json_.containsKey('approvedCountries')
            ? (json_['approvedCountries'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        destination: json_.containsKey('destination')
            ? json_['destination'] as core.String
            : null,
        disapprovedCountries: json_.containsKey('disapprovedCountries')
            ? (json_['disapprovedCountries'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        pendingCountries: json_.containsKey('pendingCountries')
            ? (json_['pendingCountries'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );