ICompanyInfo.fromJson constructor

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

Implementation

factory ICompanyInfo.fromJson(Map<String, dynamic> json) {
  return ICompanyInfo(
    id: json.containsKey('_id') ? json['_id'] : '-',
    companyName:
        json.containsKey('company_name') ? json['company_name'] : '-',
    companyPic: json.containsKey('company_logo') ? json['company_logo'] : '-',
    companyAddress: json.containsKey('adresse') ? json['adresse'] : '-',
  );
}