AffiliateInfoModel.fromJson constructor
AffiliateInfoModel.fromJson(
- Map<String, dynamic> json
)
Implementation
AffiliateInfoModel.fromJson(Map<String, dynamic> json) {
id = json['id']?.toInt();
email = json['email']?.toString();
address = json['address']?.toString();
devicePrice = (json['device_price'] as num).toDouble();
appName = json['app_name']?.toString();
appId = json['app_id']?.toString();
createdAt = json['created_at']?.toString();
updatedAt = json['updated_at']?.toString();
serialNumber = json['key_serial']?.toString();
}