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();

  result.deviceRetrievalMethods =
      (jsonObject["deviceRetrievalMethods"] as List)
          .map((item) => DeviceRetrievalMethod.fromJson(item)!)
          .toList();

  return result;
}