add dashboard to phone app
This commit is contained in:
@@ -12,6 +12,7 @@ class Vehicle {
|
||||
final int? seats;
|
||||
final String? transmission;
|
||||
final String? fuelType;
|
||||
final String? color;
|
||||
final bool isPublished;
|
||||
|
||||
const Vehicle({
|
||||
@@ -28,6 +29,7 @@ class Vehicle {
|
||||
this.seats,
|
||||
this.transmission,
|
||||
this.fuelType,
|
||||
this.color,
|
||||
required this.isPublished,
|
||||
});
|
||||
|
||||
@@ -52,6 +54,7 @@ class Vehicle {
|
||||
seats: json['seats'] as int?,
|
||||
transmission: json['transmission'] as String?,
|
||||
fuelType: json['fuelType'] as String?,
|
||||
color: json['color'] as String?,
|
||||
isPublished: json['isPublished'] as bool? ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user