passo_mobile_app/lib/model/passo/land_classification.dart

37 lines
923 B
Dart

// 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,
};
}