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.
|
|
|
import 'package:huixiang/retrofit/data/base_data_extra.dart';
|
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'base_data.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
|
|
|
class BaseData {
|
|
|
|
BaseData();
|
|
|
|
|
|
|
|
int code;
|
|
|
|
dynamic data;
|
|
|
|
BaseDataExtra extra;
|
|
|
|
bool isError;
|
|
|
|
bool isSuccess;
|
|
|
|
String msg;
|
|
|
|
String path;
|
|
|
|
String timestamp;
|
|
|
|
|
|
|
|
factory BaseData.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$BaseDataFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$BaseDataToJson(this);
|
|
|
|
}
|