Fakultas Ilmu Komputer UI

kegiatan.g.dart 1.4 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'kegiatan.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

KegiatanList _$KegiatanListFromJson(Map<String, dynamic> json) {
  return KegiatanList(
    (json['allKegiatan'] as List)
        ?.map((e) => e == null
            ? null
            : KegiatanModel.fromJson(e as Map<String, dynamic>))
        ?.toList(),
  );
}

Map<String, dynamic> _$KegiatanListToJson(KegiatanList instance) =>
    <String, dynamic>{
      'allKegiatan': instance.allKegiatan,
    };

KegiatanModel _$KegiatanModelFromJson(Map<String, dynamic> json) {
  return KegiatanModel(
    id: json['id'] as int,
jovi_013's avatar
jovi_013 committed
27
    placeId: json['place_id'] as String,
28
    creator: json['creator'] as String,
jovi_013's avatar
jovi_013 committed
29
    namaKegiatan: json['nama_kegiatan'] as String,
30
31
32
33
34
35
36
37
38
    penyelenggara: json['penyelenggara'] as String,
    narahubung: json['narahubung'] as String,
    deskripsi: json['deskripsi'] as String,
  );
}

Map<String, dynamic> _$KegiatanModelToJson(KegiatanModel instance) =>
    <String, dynamic>{
      'id': instance.id,
jovi_013's avatar
jovi_013 committed
39
      'place_id': instance.placeId,
40
      'creator': instance.creator,
jovi_013's avatar
jovi_013 committed
41
      'nama_kegiatan': instance.namaKegiatan,
42
43
44
45
      'penyelenggara': instance.penyelenggara,
      'narahubung': instance.narahubung,
      'deskripsi': instance.deskripsi,
    };