初始化项目
This commit is contained in:
27
lib/model/message.g.dart
Normal file
27
lib/model/message.g.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'message.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
MessageModel _$MessageModelFromJson(Map<String, dynamic> json) => MessageModel()
|
||||
..title = json['title'] as String?
|
||||
..did = json['did'] as String?
|
||||
..userId = json['userId'] as String?
|
||||
..userName = json['userName'] as String?
|
||||
..createTime = json['createTime'] == null
|
||||
? null
|
||||
: DateTime.parse(json['createTime'] as String)
|
||||
..type = (json['type'] as num?)?.toInt();
|
||||
|
||||
Map<String, dynamic> _$MessageModelToJson(MessageModel instance) =>
|
||||
<String, dynamic>{
|
||||
'title': instance.title,
|
||||
'did': instance.did,
|
||||
'userId': instance.userId,
|
||||
'userName': instance.userName,
|
||||
'createTime': instance.createTime?.toIso8601String(),
|
||||
'type': instance.type,
|
||||
};
|
||||
Reference in New Issue
Block a user