16 lines
391 B
Dart
16 lines
391 B
Dart
class ServicePoint {
|
|
final int servicePointId;
|
|
final String name;
|
|
|
|
const ServicePoint({
|
|
required this.servicePointId,
|
|
required this.name,
|
|
});
|
|
|
|
factory ServicePoint.fromJson(Map<String, dynamic> json) {
|
|
return ServicePoint(
|
|
servicePointId: (json["ServicePointID"] as num).toInt(),
|
|
name: (json["ServicePointName"] as String?) ?? "Service Point",
|
|
);
|
|
}
|
|
}
|