17 lines
362 B
Dart
17 lines
362 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'label_bean.g.dart';
|
|
|
|
///标签
|
|
@JsonSerializable(explicitToJson: true)
|
|
class LabelBean {
|
|
int? id;
|
|
String? name;
|
|
|
|
LabelBean(this.id, this.name);
|
|
|
|
factory LabelBean.fromJson(Map<String, dynamic> json) => _$LabelBeanFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$LabelBeanToJson(this);
|
|
}
|