Fakultas Ilmu Komputer UI

komentar_posting.g.dart 1.45 KB
Newer Older
1
2
// GENERATED CODE - DO NOT MODIFY BY HAND

3
part of 'komentar_posting.dart';
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

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

KomentarPostingList _$KomentarPostingListFromJson(Map<String, dynamic> json) {
  return KomentarPostingList(
    (json['allKomentar'] as List)
        ?.map((e) => e == null
            ? null
            : KomentarPostingModel.fromJson(e as Map<String, dynamic>))
        ?.toList(),
  );
}

Map<String, dynamic> _$KomentarPostingListToJson(
        KomentarPostingList instance) =>
    <String, dynamic>{
      'allKomentar': instance.allKomentar,
    };

KomentarPostingModel _$KomentarPostingModelFromJson(Map<String, dynamic> json) {
  return KomentarPostingModel(
    id: json['id'] as int,
    deskripsi: json['deskripsi'] as String,
    creator: json['creator'] as String,
30
    creatorEmail: json['creator_email'] as String,
31
    creatorPicture: json['creator_picture'] as String,
32
    created: _stringToDateTime(json['created'] as String),
33
34
35
36
37
38
39
40
41
  );
}

Map<String, dynamic> _$KomentarPostingModelToJson(
        KomentarPostingModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'deskripsi': instance.deskripsi,
      'creator': instance.creator,
42
      'creator_email': instance.creatorEmail,
43
      'creator_picture': instance.creatorPicture,
44
      'created': instance.created?.toIso8601String(),
45
    };