fromMap static method

dynamic fromMap(
  1. Map<String, dynamic> map
)

Implementation

static fromMap(Map<String, dynamic> map) {
  return DataModel(
    postcode: map["postcode"] ?? "",
    postcode1: map["postcode1"] ?? "",
    postcode2: map["postcode2"] ?? "",
    postcodeSeq: map["postcodeSeq"] ?? "",
    zonecode: map["zonecode"] ?? "",
    address: map["address"] ?? "",
    addressEnglish: map["addressEnglish"] ?? "",
    addressType: map["addressType"] ?? "",
    bcode: map["bcode"] ?? "",
    bname: map["bname"] ?? "",
    bnameEnglish: map["bnameEnglish"] ?? "",
    bname2English: map["bname2English"] ?? "",
    sido: map["sido"] ?? "",
    sidoEnglish: map["sidoEnglish"] ?? "",
    sigungu: map["sigungu"] ?? "",
    sigunguEnglish: map["sigunguEnglish"] ?? "",
    sigunguCode: map["sigunguCode"] ?? "",
    userLanguageType: map["userLanguageType"] ?? "",
    query: map["query"] ?? "",
    buildingName: map["buildingName"] ?? "",
    buildingCode: map["buildingCode"] ?? "",
    apartment: map["apartment"] ?? "",
    jibunAddress: map["jibunAddress"] ?? "",
    jibunAddressEnglish: map["jibunAddressEnglish"] ?? "",
    roadAddress: map["roadAddress"] ?? "",
    roadAddressEnglish: map["roadAddressEnglish"] ?? "",
    autoJibunAddress: map["autoJibunAddress"] ?? "",
    autoJibunAddressEnglish: map["autoJibunAddressEnglish"] ?? "",
    userSelectedType: map["userSelectedType"] ?? "",
    noSelected: map["noSelected"] ?? "",
    hname: map["hname"] ?? "",
    roadnameCode: map["roadnameCode"] ?? "",
    roadname: map["roadname"] ?? "",
    roadnameEnglish: map["roadnameEnglish"] ?? "",
  );
}