toJson method

Map<String, dynamic> toJson()

Creates a JSON string representation of OathTokenCode object.

Implementation

Map<String, dynamic> toJson() => {
      'code': code,
      'start': start,
      'until': until,
      'oathType': oathType == TokenType.HOTP ? 'HOTP' : 'TOTP'
    };