Vendor.fromJson constructor

Vendor.fromJson(
  1. dynamic json
)

Implementation

Vendor.fromJson(dynamic json)
    : id = json["id"],
      name = json["name"],
      policyUrl = json["policyUrl"],
      namespaces = json["namespaces"] != null ? Namespaces.fromJson(json["namespaces"]) : null,
      purposeIds = json["purposeIds"].cast<String>(),
      legIntPurposeIds = json["legIntPurposeIds"].cast<String>(),
      featureIds = json["featureIds"].cast<String>(),
      flexiblePurposeIds = json["flexiblePurposeIds"].cast<String>(),
      specialPurposeIds = json["specialPurposeIds"].cast<String>(),
      specialFeatureIds = json["specialFeatureIds"].cast<String>(),
      urls = (json["urls"] as List?)?.map((json) => Url.fromJson(json)).toList();