GetTreasuryOutboundTransfersResponse.fromJson constructor

GetTreasuryOutboundTransfersResponse.fromJson(
  1. Object? json
)

Implementation

factory GetTreasuryOutboundTransfersResponse.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return GetTreasuryOutboundTransfersResponse(
    data: (map['data'] as List<Object?>)
        .map((el) => TreasuryOutboundTransfer.fromJson(el))
        .toList(),
    hasMore: (map['has_more'] as bool),
    url: (map['url'] as String),
  );
}