OrderNote.fromJson constructor

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

Implementation

factory OrderNote.fromJson(Map<String, dynamic> json) => OrderNote(
      id: json["id"],
      author: json["author"],
      dateCreated: DateTime.parse(json["date_created"]),
      dateCreatedGmt: DateTime.parse(json["date_created_gmt"]),
      note: json["note"],
      customerNote: json["customer_note"],
      links: Links.fromJson(json["_links"]),
    );