CreateRequest.fromJson constructor

CreateRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory CreateRequest.fromJson(Map<String, Object?> json) => CreateRequest(
      alias: json["alias"] == null ? null : json["alias"] as String,
      description:
          json["description"] == null ? null : json["description"] as String,
      legalEntityType: json["legal_entity_type"] == null
          ? null
          : json["legal_entity_type"] as String,
      placementParentApplicationId:
          json["placement_parent_application_id"] == null
              ? null
              : json["placement_parent_application_id"] as String,
      relationshipPolicy: json["relationship_policy"] == null
          ? null
          : CreateRequestRelationshipPolicy.fromJson(
              (json["relationship_policy"] as Map).cast<String, Object?>(),
            ),
      name: json["name"] as String,
    );