toJson method
Implementation
@override
Map<String, dynamic> toJson() {
var json = super.toJson();
json['deviceId'] = deviceId.toJson();
json['credentialsType'] = credentialsType.toShortString();
json['credentialsId'] = credentialsId;
if (credentialsValue != null) {
json['credentialsValue'] = credentialsValue;
}
return json;
}