BannerResponse constructor

BannerResponse({
  1. required int id,
  2. @Default(false) @JsonKey(name: 'is_active') bool isActive,
  3. int? weight,
  4. String? started,
  5. String? ended,
  6. @JsonKey(name: 'deep_link') String? deepLink,
  7. @JsonKey(name: 'image_link') String? imageLink,
  8. String? description,
  9. @JsonKey(name: 'banner_type') String? bannerType,
  10. int? timing,
})

Implementation

factory BannerResponse({
  required int id,
  @Default(false) @JsonKey(name: 'is_active') bool isActive,
  int? weight,
  String? started,
  String? ended,
  @JsonKey(name: 'deep_link') String? deepLink,
  @JsonKey(name: 'image_link') String? imageLink,
  String? description,
  @JsonKey(name: 'banner_type') String? bannerType,
  int? timing,
}) = _BannerResponse;