2023-09-01 03:22:48 +00:00
|
|
|
// To parse this JSON data, do
|
|
|
|
//
|
|
|
|
// final memoranda = memorandaFromJson(jsonString);
|
|
|
|
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
Memoranda memorandaFromJson(String str) => Memoranda.fromJson(json.decode(str));
|
|
|
|
|
|
|
|
String memorandaToJson(Memoranda data) => json.encode(data.toJson());
|
|
|
|
|
|
|
|
class Memoranda {
|
|
|
|
final int? id;
|
|
|
|
final String? code;
|
|
|
|
final String? memoranda;
|
2024-03-21 05:47:57 +00:00
|
|
|
final String? genCode;
|
2023-09-01 03:22:48 +00:00
|
|
|
|
|
|
|
Memoranda({
|
|
|
|
this.id,
|
|
|
|
this.code,
|
|
|
|
this.memoranda,
|
2024-03-21 05:47:57 +00:00
|
|
|
this.genCode,
|
2023-09-01 03:22:48 +00:00
|
|
|
});
|
|
|
|
|
2023-11-10 08:38:47 +00:00
|
|
|
Memoranda copy({
|
|
|
|
int? id,
|
|
|
|
String? code,
|
|
|
|
String? memoranda,
|
2024-03-21 05:47:57 +00:00
|
|
|
String? genCode,
|
2023-11-10 08:38:47 +00:00
|
|
|
}) {
|
|
|
|
return Memoranda(
|
|
|
|
id: id ?? this.id,
|
|
|
|
code: code ?? this.code,
|
2024-03-21 05:47:57 +00:00
|
|
|
memoranda: memoranda ?? this.memoranda,
|
|
|
|
genCode: genCode ?? this.genCode);
|
2023-11-10 08:38:47 +00:00
|
|
|
}
|
|
|
|
|
2023-09-01 03:22:48 +00:00
|
|
|
factory Memoranda.fromJson(Map<String, dynamic> json) => Memoranda(
|
2024-03-21 05:47:57 +00:00
|
|
|
id: json["id"],
|
|
|
|
code: json["code"],
|
|
|
|
memoranda: json["memoranda"],
|
|
|
|
genCode: json["gen_code"]);
|
2023-09-01 03:22:48 +00:00
|
|
|
|
2023-11-10 08:38:47 +00:00
|
|
|
factory Memoranda.fromJson2(Map<String, dynamic> json) => Memoranda(
|
2024-03-21 05:47:57 +00:00
|
|
|
id: json["id"],
|
|
|
|
code: json["code"],
|
|
|
|
memoranda: json["memoranda"],
|
|
|
|
genCode: json["genCode"]);
|
2023-11-10 08:38:47 +00:00
|
|
|
|
2023-09-01 03:22:48 +00:00
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
"id": id,
|
|
|
|
"code": code,
|
|
|
|
"memoranda": memoranda,
|
2024-03-21 05:47:57 +00:00
|
|
|
"gen_code": genCode,
|
2023-09-01 03:22:48 +00:00
|
|
|
};
|
|
|
|
}
|