Public Access
style(transport_helper): fix capitalisation of Line.lineId
This commit is contained in:
@@ -282,7 +282,7 @@ class Vehicle {
|
|||||||
Map<String, Object?> toMap() {
|
Map<String, Object?> toMap() {
|
||||||
return {
|
return {
|
||||||
"id": id,
|
"id": id,
|
||||||
"line": line.LineId,
|
"line": line.lineId,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -313,7 +313,7 @@ class Vehicle {
|
|||||||
class Line {
|
class Line {
|
||||||
static const String tableName = "line";
|
static const String tableName = "line";
|
||||||
|
|
||||||
String LineId;
|
String lineId;
|
||||||
Station? destination;
|
Station? destination;
|
||||||
Station? direction;
|
Station? direction;
|
||||||
VehicleType mode;
|
VehicleType mode;
|
||||||
@@ -322,7 +322,7 @@ class Line {
|
|||||||
Color? bgColor;
|
Color? bgColor;
|
||||||
|
|
||||||
Line({
|
Line({
|
||||||
required this.LineId,
|
required this.lineId,
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.mode,
|
required this.mode,
|
||||||
this.fgColor,
|
this.fgColor,
|
||||||
@@ -331,7 +331,7 @@ class Line {
|
|||||||
|
|
||||||
Map<String, Object?> toMap() {
|
Map<String, Object?> toMap() {
|
||||||
return {
|
return {
|
||||||
"lineid": LineId,
|
"lineid": lineId,
|
||||||
"destination": destination,
|
"destination": destination,
|
||||||
"direction": direction,
|
"direction": direction,
|
||||||
"mode": mode,
|
"mode": mode,
|
||||||
@@ -350,7 +350,7 @@ class Line {
|
|||||||
];
|
];
|
||||||
|
|
||||||
factory Line.fromJson(Map<String, dynamic> json) => Line(
|
factory Line.fromJson(Map<String, dynamic> json) => Line(
|
||||||
LineId: json["lineId"],
|
lineId: json["lineId"],
|
||||||
name: json["name"],
|
name: json["name"],
|
||||||
mode: _vehicleTypeAsCatCode[int.parse(json["catCode"])],
|
mode: _vehicleTypeAsCatCode[int.parse(json["catCode"])],
|
||||||
fgColor:
|
fgColor:
|
||||||
|
|||||||
Reference in New Issue
Block a user