UpdateRequest.fromJson constructor

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

Implementation

factory UpdateRequest.fromJson(Map<String, Object?> json) => UpdateRequest(
      customData: json["custom_data"] == null
          ? null
          : core.CustomDataPatch.fromJson(json["custom_data"]),
      description:
          json["description"] == null ? null : json["description"] as String,
      label: json["label"] == null ? null : json["label"] as String,
      owner: json["owner"] == null
          ? null
          : OwnerUpdateInput.fromJson(
              (json["owner"] as Map).cast<String, Object?>(),
            ),
      reference:
          json["reference"] == null ? null : json["reference"] as String,
      accountId: json["account_id"] as String,
    );