1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-18 03:18:48 +01:00
lemmur-app-android/lib/client/models/site.g.dart
2020-08-10 19:23:21 +02:00

35 lines
1.3 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'site.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
SiteView _$SiteViewFromJson(Map<String, dynamic> json) {
return SiteView(
id: json['id'] as int,
name: json['name'] as String,
description: json['description'] as String,
creatorId: json['creator_id'] as int,
published: json['published'] == null
? null
: DateTime.parse(json['published'] as String),
updated: json['updated'] == null
? null
: DateTime.parse(json['updated'] as String),
enableDownvotes: json['enable_downvotes'] as bool,
openRegistration: json['open_registration'] as bool,
enableNsfw: json['enable_nsfw'] as bool,
icon: json['icon'] as String,
banner: json['banner'] as String,
creatorName: json['creator_name'] as String,
creatorPreferredUsername: json['creator_preferred_username'] as String,
creatorAvatar: json['creator_avatar'] as String,
numberOfUsers: json['number_of_users'] as int,
numberOfPosts: json['number_of_posts'] as int,
numberOfComments: json['number_of_comments'] as int,
numberOfCommunities: json['number_of_communities'] as int,
);
}