import 'package:json_annotation/json_annotation.dart';
import 'form_input_description_model.dart';
import 'input_cell_model.dart';

part 'input_form_registration_model.g.dart';
@JsonSerializable()
class InputFormRegistrationModel {
  final String? title;
  @JsonKey(name: 'input_required')
  final List<InputCellModel>? inputRequired;
  @JsonKey(name: 'header_description')
  final FormInputDescriptionModel? headerDescription;
  @JsonKey(name: 'footer_description')
  final FormInputDescriptionModel? footerDescription;
  @JsonKey(name: 'click_action_type')
  final String? clickActionType;
  @JsonKey(name: 'click_action_param')
  final String? clickActionParam;
  final bool? checked;

  InputFormRegistrationModel({
    this.title,
    this.inputRequired,
    this.headerDescription,
    this.footerDescription,
    this.clickActionType,
    this.clickActionParam,
    this.checked,
  });

  factory InputFormRegistrationModel.fromJson(Map<String, dynamic> json) =>
      _$InputFormRegistrationModelFromJson(json);

  Map<String, dynamic> toJson() => _$InputFormRegistrationModelToJson(this);
}
