toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'network_identifier': networkIdentifier.toJson(),
'account_identifier': accountIdentifier.toJson(),
'block_identifier': blockIdentifier?.toJson(),
'currencies': currencies?.map((e) => e.toJson()).toList(),
}..removeWhere((key, value) => value == null);
}