toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0xad01d61d",
"flags": flags,
"current": current,
"officialApp": officialApp,
"passwordPending": passwordPending,
"encryptedRequestsDisabled": encryptedRequestsDisabled,
"callRequestsDisabled": callRequestsDisabled,
"unconfirmed": unconfirmed,
"hash": hash,
"deviceModel": deviceModel,
"platform": platform,
"systemVersion": systemVersion,
"apiId": apiId,
"appName": appName,
"appVersion": appVersion,
"dateCreated": dateCreated.toIso8601String(),
"dateActive": dateActive.toIso8601String(),
"ip": ip,
"country": country,
"region": region,
};
// Finished toJson.
return returnValue;
}