DeviceTokenHuaweiPush.fromJson constructor

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

Parse from a json

Implementation

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