BalanceDetail.fromJson constructor

BalanceDetail.fromJson(
  1. Object? json
)

Implementation

factory BalanceDetail.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return BalanceDetail(
      available: (map['available'] as List<Object?>)
          .map((el) => BalanceAmount.fromJson(el))
          .toList());
}