fromJson static method
Implementation
static TonWalletTransactions? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return TonWalletTransactions(
gramAmount: (json['gram_amount'] is int
? json['gram_amount'] as int
: int.tryParse(json['gram_amount']?.toString() ?? '')) ??
0,
transactions: List<TonWalletTransaction>.from(
((json['transactions'] as List<dynamic>?) ?? <dynamic>[])
.map((item) =>
TonWalletTransaction.fromJson(item as Map<String, dynamic>?))
.toList()),
nextOffset: (json['next_offset'] as String?) ?? '',
);
}