Buyer.fromMap constructor

Buyer.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory Buyer.fromMap(Map<String, dynamic> json) => Buyer(
      email: json["buyer_email"] == null ? null : json["buyer_email"],
      mobile: json["buyer_mobile"] == null ? null : json["buyer_mobile"],
      language: json["buyer_language"] == null ? null : json["buyer_language"],
      os: json["buyer_os"] == null ? null : json["buyer_os"],
      notifyBuyer: json["notify_buyer"] == null ? null : json["notify_buyer"],
      title: json["buyer_title"] == null ? null : json["buyer_title"],
      name: json["buyer_name"] == null ? null : json["buyer_name"],
      surname: json["buyer_surname"] == null ? null : json["buyer_surname"],
    );