toMap method Null safety

  1. @override
Map<String, Object?> toMap()

model -> map

Implementation

@override
Map<String, Object?> toMap() {
  return {
    'id': this.id,
    'visible': visible,
    'zIndex': zIndex,
    'className': this.className,
  };
}