mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-28 06:15:51 +08:00
30
lib/models_new/space/space/elec_set.dart
Normal file
30
lib/models_new/space/space/elec_set.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
import 'package:PiliPlus/models_new/space/space/elec_list.dart';
|
||||
|
||||
class ElecSet {
|
||||
int? elecTheme;
|
||||
int? rmbRate;
|
||||
int? integrityRate;
|
||||
int? roundMode;
|
||||
List<ElecList>? elecList;
|
||||
String? batteryItemDesc;
|
||||
|
||||
ElecSet({
|
||||
this.elecTheme,
|
||||
this.rmbRate,
|
||||
this.integrityRate,
|
||||
this.roundMode,
|
||||
this.elecList,
|
||||
this.batteryItemDesc,
|
||||
});
|
||||
|
||||
factory ElecSet.fromJson(Map<String, dynamic> json) => ElecSet(
|
||||
elecTheme: json['elec_theme'] as int?,
|
||||
rmbRate: json['rmb_rate'] as int?,
|
||||
integrityRate: json['integrity_rate'] as int?,
|
||||
roundMode: json['round_mode'] as int?,
|
||||
elecList: (json['elec_list'] as List<dynamic>?)
|
||||
?.map((e) => ElecList.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
batteryItemDesc: json['battery_item_desc'] as String?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user