fromJson static method

BarcodeResult? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static BarcodeResult? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = BarcodeResult();

  for (var item in jsonObject["fields"]) {
    result._fields.addSafe(BarcodeField.fromJson(item));
  }

  return result;
}