Receipt.fromJson constructor

Receipt.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Receipt.fromJson(Map<String, Object?> json) => Receipt(
      format: ReceiptFormat.fromJson(
        (json["format"] as Map).cast<String, Object?>(),
      ),
      number: json["number"] == null ? null : json["number"] as String,
      deliverySummary: json["delivery_summary"] == null
          ? null
          : (json["delivery_summary"] as Map).cast<String, Object?>(),
    );