DeviceTokenHuaweiPush.fromJson constructor

DeviceTokenHuaweiPush.fromJson(
  1. Map<String, dynamic> json
)

Parses a DeviceTokenHuaweiPush from TDLib JSON.

Implementation

factory DeviceTokenHuaweiPush.fromJson(Map<String, dynamic> json) =>
    DeviceTokenHuaweiPush(
      token: _readString(json['token']),
      encrypt: _readBool(json['encrypt']),
    );