TransferOrId.fromJson constructor

TransferOrId.fromJson(
  1. Object? json
)

Implementation

factory TransferOrId.fromJson(Object? json) {
  if (json is String) {
    return TransferId(id: json);
  }
  return Transfer.fromJson(json);
}