PayoutOrId.fromJson constructor
PayoutOrId.fromJson(
- Object? json
Implementation
factory PayoutOrId.fromJson(Object? json) {
if (json is String) {
return PayoutId(id: json);
}
return Payout.fromJson(json);
}