Map<String, dynamic> toJson() => { 'id': id, 'topic': topic, 'method': method, 'chainId': chainId, 'params': params, 'transportType': transportType.name, };