passo_mobile_app/lib/model/passo/land_classification.dart

37 lines
923 B
Dart
Raw Normal View History

2023-09-01 03:22:48 +00:00
// To parse this JSON data, do
//
// final landClassification = landClassificationFromJson(jsonString);
import 'dart:convert';
LandClassification landClassificationFromJson(String str) =>
LandClassification.fromJson(json.decode(str));
String landClassificationToJson(LandClassification data) =>
json.encode(data.toJson());
class LandClassification {
final int? id;
final String? classificationCode;
final String? description;
LandClassification({
this.id,
this.classificationCode,
this.description,
});
factory LandClassification.fromJson(Map<String, dynamic> json) =>
LandClassification(
id: json["id"],
classificationCode: json["classification_code"],
description: json["description"],
);
Map<String, dynamic> toJson() => {
"id": id,
"classification_code": classificationCode,
"description": description,
};
}