factory BodyMask.fromMap(Map<Object?, Object?> map) { return BodyMask( buffer: map['buffer'] as Float64List, width: map['width'] as int, height: map['height'] as int, ); }