fromMap static method

BackgroundTypePattern? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static BackgroundTypePattern? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var fill = BackgroundFill.fromMap(_map['fill'])!;
  var intensity = _map['intensity']! as int;
  var is_inverted = _map['is_inverted']! as bool;
  var is_moving = _map['is_moving']! as bool;
  return BackgroundTypePattern(
    extra: extra,
    clientId: clientId,
    fill: fill,
    intensity: intensity,
    is_inverted: is_inverted,
    is_moving: is_moving,
  );
}