PayoutDestinationOrId.fromJson constructor
PayoutDestinationOrId.fromJson(
- Object? json
Implementation
factory PayoutDestinationOrId.fromJson(Object? json) {
if (json is String) {
return PayoutDestinationId(id: json);
}
return PayoutDestination.fromJson(json);
}