Create a JSON map from the application.
Map<String, dynamic> toJson() => { 'type': type, 'appId': appId, 'clientId': clientId, 'keyId': keyId, 'key': key, };