toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the request parameters to a JSON format.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'account_identifier': accountIdentifier.map(
      (key, value) => MapEntry(key, value.toAddress(visible)),
    ),
    'block_identifier': blockIdentifier,
    'visible': visible
  };
}