PayoutDestinationOrId.fromJson constructor

PayoutDestinationOrId.fromJson(
  1. Object? json
)

Implementation

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