LoginData.fromJson constructor
LoginData.fromJson(
- dynamic json
Implementation
LoginData.fromJson(dynamic json) {
_userId = json['user_id'];
_parentId = json['parent_id'];
_token = json['token'];
_companyId = json['company_id'];
_masterUserId = json['master_user_id'];
_userType = json['user_type'];
_name = json['name'];
_nameSmall = json['name_small'];
_nameSmall2 = json['name_small_2'];
_emailAddress = json['email_address'];
_countryCode = json['country_code'];
_contactNo = json['contact_no'];
_area = json['area'];
_pincode = json['pincode'];
_websiteUrl = json['website_url'];
_companyAddress = json['company_address'];
_discountAsPer = json['discount_as_per'];
_showQuantityIndicator = json['show_quantity_indicator'];
_discountAsPerFixed = json['discount_as_per_fixed'];
_discoutAsPerProductVise = json['discout_as_per_product_vise'];
_returnMaxDay = json['return_max_day'];
_expiryReturn = json['expiry_return'];
_countryId = json['country_id'];
_country = json['country'];
_stateId = json['state_id'];
_state = json['state'];
_cityId = json['city_id'];
_city = json['city'];
_companyLogo = json['company_logo'];
_companyLogoFull = json['company_logo_full'];
_drugLicenseNo = json['drug_license_no'];
_drugLicensePhoto = json['drug_license_photo'];
_drugLicensePhotoFull = json['drug_license_photo_full'];
_drugLicensePdf = json['drug_license_pdf'];
_drugLicensePdfFull = json['drug_license_pdf_full'];
_drugLicensePhoto0OrPdf1 = json['drug_license_photo_0_or_pdf_1'];
_gstNo = json['gst_no'];
_gstPhoto = json['gst_photo'];
_gstPhotoFull = json['gst_photo_full'];
_gstPdf = json['gst_pdf'];
_gstPdfFull = json['gst_pdf_full'];
_gstPhoto0OrPdf1 = json['gst_photo_0_or_pdf_1'];
_panCardNo = json['pan_card_no'];
_panCardPhoto = json['pan_card_photo'];
_panCardPhotoFull = json['pan_card_photo_full'];
_panCardPdf = json['pan_card_pdf'];
_panCardPdfFull = json['pan_card_pdf_full'];
_panCardPhoto0OrPdf1 = json['pan_card_photo_0_or_pdf_1'];
_orderGstTypeId = json['order_gst_type_id'];
_createdAtDateTime = json['created_at_date_time'] != null ? CreatedAtDateTime.fromJson(json['created_at_date_time']) : null;
_updatedAtDateTime = json['updated_at_date_time'] != null ? UpdatedAtDateTime.fromJson(json['updated_at_date_time']) : null;
_isActive = json['is_active'];
_address = json['address'];
if (json['drug_license_array'] != null) {
_drugLicenseArray = [];
json['drug_license_array'].forEach((v) {
_drugLicenseArray?.add(DrugLicenseArray.fromJson(v));
});
}
if (json['retailer_ids_array_map'] != null) {
_retailerIdsArrayMap = [];
json['retailer_ids_array_map'].forEach((v) {
_retailerIdsArrayMap?.add(RetailerIdsArrayMap.fromJson(v));
});
}
}