mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-18 17:46:52 +08:00
24
lib/models_new/space/space/extra.dart
Normal file
24
lib/models_new/space/space/extra.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
import 'package:PiliPlus/models_new/space/space/card.dart';
|
||||
|
||||
class Extra {
|
||||
SpaceCard? card;
|
||||
int? salesType;
|
||||
int? upzoneEntranceType;
|
||||
String? upzoneEntranceReportId;
|
||||
|
||||
Extra({
|
||||
this.card,
|
||||
this.salesType,
|
||||
this.upzoneEntranceType,
|
||||
this.upzoneEntranceReportId,
|
||||
});
|
||||
|
||||
factory Extra.fromJson(Map<String, dynamic> json) => Extra(
|
||||
card: json['card'] == null
|
||||
? null
|
||||
: SpaceCard.fromJson(json['card'] as Map<String, dynamic>),
|
||||
salesType: json['sales_type'] as int?,
|
||||
upzoneEntranceType: json['upzone_entrance_type'] as int?,
|
||||
upzoneEntranceReportId: json['upzone_entrance_report_id'] as String?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user