BalanceTransactionSource.fromJson constructor

BalanceTransactionSource.fromJson(
  1. Object? json
)

Implementation

factory BalanceTransactionSource.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  final type = (map['object'] as String);
  final factory = $mapping[type];
  if (factory == null) {
    throw ArgumentError('Unknown type of BalanceTransactionSource: "$type"');
  }
  return factory(map);
}