toJson method

Map<String, dynamic> toJson()

Create a JSON map from the application.

Implementation

Map<String, dynamic> toJson() => {
      'type': type,
      'userId': userId,
      'keyId': keyId,
      'key': key,
    };