You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
509 B
27 lines
509 B
import 'package:json_annotation/json_annotation.dart'; |
|
|
|
|
|
part 'task.g.dart'; |
|
|
|
@JsonSerializable() |
|
class Task { |
|
Task(); |
|
String aspects; |
|
int complateNum; |
|
int conplateNum; |
|
String createTime; |
|
String createUser; |
|
String id; |
|
int limitDay; |
|
String name; |
|
int rewardType; |
|
String rewardValue; |
|
bool status; |
|
String type; |
|
String updateTime; |
|
String updateUser; |
|
|
|
factory Task.fromJson(Map<String, dynamic> json) => _$TaskFromJson(json); |
|
Map<String, dynamic> toJson() => _$TaskToJson(this); |
|
|
|
} |