parent
7441b73fb3
commit
8d5a88d5bb
@ -1,3 +1,4 @@
|
||||
{
|
||||
"flutterSdkVersion": "2.0.2"
|
||||
"flutterSdkVersion": "2.0.2",
|
||||
"flavors": {}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
import 'package:aku_community_manager/models/common/img_model.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
part 'engineer_repair_list_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class EngineerRepairListModel {
|
||||
final int id;
|
||||
final String code;
|
||||
final int type;
|
||||
final String reportDetail;
|
||||
final int status;
|
||||
final List<ImgModel> imgUrls;
|
||||
final String createDate;
|
||||
EngineerRepairListModel({
|
||||
required this.id,
|
||||
required this.code,
|
||||
required this.type,
|
||||
required this.reportDetail,
|
||||
required this.status,
|
||||
required this.imgUrls,
|
||||
required this.createDate,
|
||||
});
|
||||
factory EngineerRepairListModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$EngineerRepairListModelFromJson(json);
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'engineer_repair_list_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
EngineerRepairListModel _$EngineerRepairListModelFromJson(
|
||||
Map<String, dynamic> json) {
|
||||
return EngineerRepairListModel(
|
||||
id: json['id'] as int,
|
||||
code: json['code'] as String,
|
||||
type: json['type'] as int,
|
||||
reportDetail: json['reportDetail'] as String,
|
||||
status: json['status'] as int,
|
||||
imgUrls: (json['imgUrls'] as List<dynamic>)
|
||||
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
createDate: json['createDate'] as String,
|
||||
);
|
||||
}
|
Loading…
Reference in new issue