54 lines
1.3 KiB
Dart
54 lines
1.3 KiB
Dart
|
|
||
|
import 'dart:convert';
|
||
|
|
||
|
AgencyPosition agencyPositionFromJson(String str) => AgencyPosition.fromJson(json.decode(str));
|
||
|
|
||
|
String agencyPositionToJson(AgencyPosition data) => json.encode(data.toJson());
|
||
|
|
||
|
class AgencyPosition {
|
||
|
AgencyPosition({
|
||
|
required this.id,
|
||
|
required this.title,
|
||
|
});
|
||
|
|
||
|
final int? id;
|
||
|
final String? title;
|
||
|
|
||
|
factory AgencyPosition.fromJson(Map<String, dynamic> json) => AgencyPosition(
|
||
|
id: json["id"],
|
||
|
title: json["title"],
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> toJson() => {
|
||
|
"id": id,
|
||
|
"title": title,
|
||
|
};
|
||
|
}
|
||
|
// To parse this JSON data, do
|
||
|
//
|
||
|
// final appoinemtStatus = appoinemtStatusFromJson(jsonString);
|
||
|
AppoinemtStatus appoinemtStatusFromJson(String str) => AppoinemtStatus.fromJson(json.decode(str));
|
||
|
|
||
|
String appoinemtStatusToJson(AppoinemtStatus data) => json.encode(data.toJson());
|
||
|
|
||
|
class AppoinemtStatus {
|
||
|
AppoinemtStatus({
|
||
|
required this.value,
|
||
|
required this.label,
|
||
|
});
|
||
|
|
||
|
final String value;
|
||
|
final String label;
|
||
|
|
||
|
factory AppoinemtStatus.fromJson(Map<String, dynamic> json) => AppoinemtStatus(
|
||
|
value: json["value"],
|
||
|
label: json["label"],
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> toJson() => {
|
||
|
"value": value,
|
||
|
"label": label,
|
||
|
};
|
||
|
}
|
||
|
|