//***************************************************************** // Generate by vsc-wisdom-flutter-kit //***************************************************************** ///[http://yapi.wisdomcity.com.cn/project/40/interface/api/10769](http://yapi.wisdomcity.com.cn/project/40/interface/api/10769) /// ///update 2020-10-16 16:32:53 /// ///根据仪表id获取公共抄表记录 // ignore: library_names library meterReading_common_record.get; import 'response_model.dart'; import 'package:dio/dio.dart'; ///[http://yapi.wisdomcity.com.cn/project/40/interface/api/10769](http://yapi.wisdomcity.com.cn/project/40/interface/api/10769) /// ///update 2020-10-16 16:32:53 /// ///根据仪表id获取公共抄表记录 class Interface { Interface._(); static const String path = '/app/admin/meterReading/common/record'; static const String method = 'get'; static Future>> request( Dio dio, { Options? options, Map? pathParameters, Map? queryParameters, data, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { final res = await dio.request( _path(pathParameters ?? {}), data: data, queryParameters: queryParameters, cancelToken: cancelToken, options: Options(method: 'get'), onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, ); return ResponseModel( json: res.data, to: (v) => v.toJson(), from: (v) => ResponsePagingModel( json: v, to: (v) => v.toJson(), from: (v) => $DataModel.fromJson(v), ), ); } static String _path(Map pathParameters) { String back = path; for (final key in pathParameters.keys) { back = back.replaceAll('{$key}', pathParameters[key].toString()); } return back; } } ///http://yapi.wisdomcity.com.cn/project/40/interface/api/10769 /// /// /// ///`id` /// ///`transcribeDate` 账期 /// ///`transcribeAmount` 抄表读数 /// ///`actualAmount` 实际行度 /// ///`chargeAmount` 计费行度 /// ///`readerName` 抄表员姓名 /// // ignore: camel_case_types class $DataModel { ///`id` String? id; ///`transcribeDate` 账期 String? transcribeDate; ///`transcribeAmount` 抄表读数 num? transcribeAmount; ///`actualAmount` 实际行度 num? actualAmount; ///`chargeAmount` 计费行度 num? chargeAmount; ///`readerName` 抄表员姓名 String? readerName; var updatedAt; ///http://yapi.wisdomcity.com.cn/project/40/interface/api/10769 /// /// /// ///`id` /// ///`transcribeDate` 账期 /// ///`transcribeAmount` 抄表读数 /// ///`actualAmount` 实际行度 /// ///`chargeAmount` 计费行度 /// ///`readerName` 抄表员姓名 $DataModel({ this.id, this.transcribeDate, this.transcribeAmount, this.actualAmount, this.chargeAmount, this.readerName, this.updatedAt, }); $DataModel.fromJson(json) { Map map = Map.from(json); this.id = map['id']; this.transcribeDate = map['transcribeDate']; this.transcribeAmount = map['transcribeAmount']; this.actualAmount = map['actualAmount']; this.chargeAmount = map['chargeAmount']; this.readerName = map['readerName']; this.updatedAt = map['updatedAt']; } Map toJson() { Map json = Map(); json['id'] = this.id; json['transcribeDate'] = this.transcribeDate; json['transcribeAmount'] = this.transcribeAmount; json['actualAmount'] = this.actualAmount; json['chargeAmount'] = this.chargeAmount; json['readerName'] = this.readerName; json['updatedAt'] = this.updatedAt; return Map.from(json); } }