一次大的提交
This commit is contained in:
@@ -4,7 +4,10 @@ import '../../domain/entities/report_entity.dart';
|
||||
class ReportModel {
|
||||
final String? location;
|
||||
final String? reportType;
|
||||
final int? siteId;
|
||||
final String? siteName;
|
||||
final String? deviceId;
|
||||
final String? deviceName;
|
||||
final String? description;
|
||||
final List<String>? mediaUrls;
|
||||
final String? problemLevel;
|
||||
@@ -12,7 +15,10 @@ class ReportModel {
|
||||
ReportModel({
|
||||
this.location,
|
||||
this.reportType,
|
||||
this.siteId,
|
||||
this.siteName,
|
||||
this.deviceId,
|
||||
this.deviceName,
|
||||
this.description,
|
||||
this.mediaUrls,
|
||||
this.problemLevel,
|
||||
@@ -23,7 +29,10 @@ class ReportModel {
|
||||
return ReportModel(
|
||||
location: json['location'] as String?,
|
||||
reportType: json['reportType'] as String?,
|
||||
siteId: json['siteId'] as int?,
|
||||
siteName: json['siteName'] as String?,
|
||||
deviceId: json['deviceId'] as String?,
|
||||
deviceName: json['deviceName'] as String?,
|
||||
description: json['description'] as String?,
|
||||
mediaUrls: (json['mediaUrls'] as List<dynamic>?)?.cast<String>(),
|
||||
problemLevel: json['problemLevel'] as String?,
|
||||
@@ -35,7 +44,10 @@ class ReportModel {
|
||||
return {
|
||||
'location': location,
|
||||
'reportType': reportType,
|
||||
'siteId': siteId,
|
||||
'siteName': siteName,
|
||||
'deviceId': deviceId,
|
||||
'deviceName': deviceName,
|
||||
'description': description,
|
||||
'mediaUrls': mediaUrls,
|
||||
'problemLevel': problemLevel,
|
||||
@@ -47,7 +59,10 @@ class ReportModel {
|
||||
return ReportEntity(
|
||||
location: location,
|
||||
reportType: reportType,
|
||||
siteId: siteId,
|
||||
siteName: siteName,
|
||||
deviceId: deviceId,
|
||||
deviceName: deviceName,
|
||||
description: description,
|
||||
mediaUrls: mediaUrls,
|
||||
problemLevel: problemLevel,
|
||||
@@ -59,7 +74,10 @@ class ReportModel {
|
||||
return ReportModel(
|
||||
location: entity.location,
|
||||
reportType: entity.reportType,
|
||||
siteId: entity.siteId,
|
||||
siteName: entity.siteName,
|
||||
deviceId: entity.deviceId,
|
||||
deviceName: entity.deviceName,
|
||||
description: entity.description,
|
||||
mediaUrls: entity.mediaUrls,
|
||||
problemLevel: entity.problemLevel,
|
||||
|
||||
Reference in New Issue
Block a user