toJson method
Serialize to a JSON-encodable map, omitting absent members.
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'did': did,
if (accountType != null) 'accountType': accountType!.value,
'receive': receive.toJson(),
'send': send.toJson(),
};