CreditNoteOrId.fromJson constructor
CreditNoteOrId.fromJson(
- Object? json
Implementation
factory CreditNoteOrId.fromJson(Object? json) {
if (json is String) {
return CreditNoteId(id: json);
}
return CreditNote.fromJson(json);
}