import 'package:json_annotation/json_annotation.dart';

import '../../bean/character_info.dart';

part 'keyboard_home_info_response.g.dart';

@JsonSerializable()
class KeyboardHomeInfoResponse {
  @JsonKey(name: "name")
  String? name;
  @JsonKey(name: "imageUrl")
  String? imageUrl;

  @JsonKey(name: "targetName")
  String? targetName;

  @JsonKey(name: "targetImageUrl")
  String? targetImageUrl;

  @JsonKey(name: "intimacy")
  int? intimacy;

  @JsonKey(name: "intimacyName")
  String? intimacyName;

  @JsonKey(name: "characterInfos")
  List<CharacterInfo>? characterInfos;

  KeyboardHomeInfoResponse({
     this.name,
     this.imageUrl,
     this.targetName,
     this.targetImageUrl,
     this.intimacy,
     this.intimacyName,
     this.characterInfos,
  });

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

}
