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