RegisterDeviceTokenReq.fromMap constructor
RegisterDeviceTokenReq.fromMap(
- Map<String, dynamic> map
)
Implementation
factory RegisterDeviceTokenReq.fromMap(Map<String, dynamic> map) {
return RegisterDeviceTokenReq(
deviceToken: map['pn_token'] as String,
platform: map['pn_type'] as String,
bundleId: map['app_id'] as String,
domain: map['domain'] as String,
extension: map['extension'] as String,
appMode: map['app_mode'] as String,
fcmToken: map['fcm_token'] as String,
deviceName: map['device_name'] as String,
deviceModel: map['device_model'] as String,
deviceBrand: map['device_brand'] as String,
);
}