Profile.fromJson constructor

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

Implementation

Profile.fromJson(Map<String, dynamic> json) {
  entityId = json['entityId'];
  parentId = json['parentId'];
  firstName = json['firstName'];
  lastName = json['lastName'];
  emailId = json['emailId'];
  mobileNumber = json['mobileNumber'];
  customerNumber = json['customerNumber'];
  levelId = json['levelId'];
  levelName = json['levelName'];
  commercialChannelId = json['commercialChannelId'];
  commercialChannelName = json['commercialChannelName'];
  customerCode = json['customerCode'];
  if (json['fields'] != null) {
    fields = <Fields>[];
    json['fields'].forEach((v) {
      fields!.add(new Fields.fromJson(v));
    });
  }
  profileGroup = json['profileGroup'] != null
      ? new ProfileGroup.fromJson(json['profileGroup'])
      : null;
  displayName = json['displayName'];
  salesForce = json['salesForce'];
  status = json['status'];
  address =
      json['address'] != null ? new Address.fromJson(json['address']) : null;
  partnerType = json['partnerType'];
  partnerName = json['partnerName'];
}