toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'network_identifier': networkIdentifier.toJson(),
    'operations': operations.map((e) => e.toJson()).toList(),
    'public_keys': publicKeys?.map((e) => e.toJson()).toList(),
    'metadata': metadata,
  }..removeWhere((key, value) => value == null);
}