CustomerOrId.fromJson constructor
CustomerOrId.fromJson(
- Object? json
Implementation
factory CustomerOrId.fromJson(Object? json) {
if (json is String) {
return CustomerId(id: json);
}
return Customer.fromJson(json);
}