ProductCertification.fromJson constructor

ProductCertification.fromJson(
  1. Map json_
)

Implementation

ProductCertification.fromJson(core.Map json_)
    : this(
        brand:
            json_.containsKey('brand') ? json_['brand'] as core.String : null,
        certification: json_.containsKey('certification')
            ? (json_['certification'] as core.List)
                .map((value) => Certification.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        countryCode: json_.containsKey('countryCode')
            ? (json_['countryCode'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        destinationStatuses: json_.containsKey('destinationStatuses')
            ? (json_['destinationStatuses'] as core.List)
                .map((value) => DestinationStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        issues: json_.containsKey('issues')
            ? (json_['issues'] as core.List)
                .map((value) => Issue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        mpn: json_.containsKey('mpn')
            ? (json_['mpn'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        productCode: json_.containsKey('productCode')
            ? (json_['productCode'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        productType: json_.containsKey('productType')
            ? (json_['productType'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );