Map<String, dynamic> toJson() { return { 'orientation': orientation, 'offset': offset, 'maskLength': maskLength, }; }