AdditionalInfo.fromJson constructor

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

Factory method to create an AdditionalInfo object from JSON data.

Implementation

factory AdditionalInfo.fromJson(Map<String, dynamic> json) {
  return AdditionalInfo(
    billNumber: json['billNumber'] ?? '',
    customerLabel: json['customerLabel'] ?? '',
    loyaltyNumber: json['loyaltyNumber'] ?? '',
    mobileNumber: json['mobileNumber'] ?? '',
    referenceLabel: json['referenceLabel'] ?? '',
    storeId: json['storeId'] ?? '',
  );
}