fromDynamic static method

StopScreenshotStreamCommand fromDynamic(
  1. dynamic map,
  2. String id,
  3. DateTime timestamp
)
override

Deserializes the command from a Map or a map-like object into the the proper data model. This will throw an exception if map is null.

Implementation

static StopScreenshotStreamCommand fromDynamic(
  dynamic map,
  String id,
  DateTime timestamp,
) {
  late StopScreenshotStreamCommand result;

  if (map == null) {
    throw Exception('[StopScreenshotStreamCommand.fromDynamic]: map is null');
  } else {
    result = StopScreenshotStreamCommand(
      id: id,
      timestamp: timestamp,
    );
  }

  return result;
}