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': 'ec86017a',
    '\$name': 'AccountRegisterDevice',
    'flags': flags,
    'noMuted': noMuted,
    'tokenType': tokenType,
    'token': token,
    'appSandbox': appSandbox,
    'secret': secret,
    'otherUids': otherUids,
  };

  // Finished toJson.
  return returnValue;
}