UpdateRequest.fromJson constructor
Implementation
factory UpdateRequest.fromJson(Map<String, Object?> json) => UpdateRequest(
customData: json["custom_data"] == null
? null
: core.CustomDataPatch.fromJson(json["custom_data"]),
active: json["active"] == null ? null : json["active"] as bool,
archived: json["archived"] == null ? null : json["archived"] as bool,
owner: json["owner"] == null
? null
: UpdateRequestOwner.fromJson(
(json["owner"] as Map).cast<String, Object?>(),
),
paymentMethodId: json["payment_method_id"] as String,
);