toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    '\$hash': 'ad01d61d',
    '\$name': 'Authorization',
    '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;
}