初始化项目
This commit is contained in:
14
lib/model/issue.dart
Normal file
14
lib/model/issue.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'issue.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class IssueModel {
|
||||
String? title;
|
||||
String? title_content;
|
||||
|
||||
IssueModel();
|
||||
static IssueModel fromJson(Map<String, dynamic> json) =>
|
||||
_$IssueModelFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$IssueModelToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user