fromJson static method

DeviceEngagement? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  for (var item in jsonObject["deviceRetrievalMethods"]) {
    result.deviceRetrievalMethods
        .addSafe(DeviceRetrievalMethod.fromJson(item));
  }

  return result;
}