import 'package:json_annotation/json_annotation.dart';

part 'header_home_model.g.dart';
@JsonSerializable()
class HeaderHomeModel {
  final String? greeting;
  @JsonKey(name: 'total_voucher')
  final int? totalVoucher;
  @JsonKey(name: 'total_point_active')
  final int? totalPointActive;
  final String? background;

  HeaderHomeModel({
    this.greeting,
    this.totalVoucher,
    this.totalPointActive,
    this.background,
  });

  factory HeaderHomeModel.fromJson(Map<String, dynamic> json) => _$HeaderHomeModelFromJson(json);
  Map<String, dynamic> toJson() => _$HeaderHomeModelToJson(this);
}
