toJson method
Creates a JSON string representation of Mechanism object.
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'issuer': issuer,
'accountName': accountName,
'mechanismUID': mechanismUID,
'type': type,
'secret': _secret?.replaceRange(0, null, 'REMOVED')
};