ReceiptFormat.fromJson constructor

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

Implementation

factory ReceiptFormat.fromJson(Map<String, Object?> json) => ReceiptFormat(
      web: DocumentFormat.fromJson(
        (json["web"] as Map).cast<String, Object?>(),
      ),
      pdf: DocumentFormat.fromJson(
        (json["pdf"] as Map).cast<String, Object?>(),
      ),
    );