toJson method
Creates a JSON string representation of OathMechanism object.
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'issuer': issuer,
'accountName': accountName,
'mechanismUID': mechanismUID,
'oathType': oathType == TokenType.HOTP ? 'HOTP' : 'TOTP',
'type': 'otpauth',
'algorithm': algorithm,
'secret': 'REMOVED',
'digits': digits,
'counter': counter,
'period': period,
'timeAdded': timeAdded
};