Browse Source

[fix]移除联系人创建时间

zk 4 months ago
parent
commit
f42c19e6db
2 changed files with 1 additions and 6 deletions
  1. 1 4
      lib/data/bean/contact_info.dart
  2. 0 2
      lib/data/bean/contact_info.g.dart

+ 1 - 4
lib/data/bean/contact_info.dart

@@ -16,10 +16,7 @@ class ContactInfo {
   @JsonKey(name: 'favor')
   bool? favor;
 
-  @JsonKey(name: 'createTime')
-  int createTime;
-
-  ContactInfo(this.id, this.phone, this.remark, this.favor, this.createTime);
+  ContactInfo(this.id, this.phone, this.remark, this.favor);
 
   factory ContactInfo.fromJson(Map<String, dynamic> json) =>
       _$ContactInfoFromJson(json);

+ 0 - 2
lib/data/bean/contact_info.g.dart

@@ -11,7 +11,6 @@ ContactInfo _$ContactInfoFromJson(Map<String, dynamic> json) => ContactInfo(
       json['phone'] as String,
       json['remark'] as String?,
       json['favor'] as bool?,
-      (json['createTime'] as num).toInt(),
     );
 
 Map<String, dynamic> _$ContactInfoToJson(ContactInfo instance) =>
@@ -20,5 +19,4 @@ Map<String, dynamic> _$ContactInfoToJson(ContactInfo instance) =>
       'phone': instance.phone,
       'remark': instance.remark,
       'favor': instance.favor,
-      'createTime': instance.createTime,
     };