toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "network_identifier": network_identifier.toJson(),
      "account_identifier": account_identifier.toJson(),
      "block_identifier": block_identifier?.toJson(),
      "currencies": currencies?.map((e) => e.toJson()).toList()
    }..removeWhere(
        (dynamic key, dynamic value) => key == null || value == null);