fromJson static method

DataField? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._data = jsonObject["data"];
  var fieldType = RFIDDataFileType.getByValue(jsonObject["fieldType"]);
  if (fieldType == null) return null;
  result._fieldType = fieldType;

  return result;
}