fromJson static method

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

Implementation

static ProductPrecautionaryAllergenStatement fromJson(
        Map<String, dynamic> json) =>
    ProductPrecautionaryAllergenStatement(
      product:
          json['product'] != null ? Product.fromJson(json['product']) : null,
      precautionaryAllergenStatement:
          json['precautionaryAllergenStatement'] != null
              ? PrecautionaryAllergenStatement.fromJson(
                  json['precautionaryAllergenStatement'])
              : null,
      id: json['id'],
      created:
          json['created'] != null ? DateTime.parse(json['created']) : null,
      creator: json['creator'],
      updated:
          json['updated'] != null ? DateTime.parse(json['updated']) : null,
      updater: json['updater'],
    );