SuitePlatform.deserialize constructor Null safety

SuitePlatform.deserialize(
  1. Object serialized
)

Converts a JSON-safe representation generated by serialize back into a SuitePlatform.

Implementation

factory SuitePlatform.deserialize(Object serialized) {
  var map = serialized as Map;
  return SuitePlatform(Runtime.deserialize(map['runtime'] as Object),
      os: OperatingSystem.find(map['os'] as String),
      inGoogle: map['inGoogle'] as bool);
}