Gallery.fromJson constructor

Gallery.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Gallery.fromJson(Map<String, dynamic> json) {
  return Gallery(
    id: json['id']?.toString() ?? '',
    title: json['title']?.toString() ?? '',
    date: json['date']?.toString(),
    rating100: json['rating100'] as int?,
    imageCount: json['image_count'] as int?,
    details: json['details']?.toString(),
  );
}