PhotoDTO.fromJson constructor

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

Implementation

PhotoDTO.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
  url = json['url'];
  name = json['name'];
  description = json['description'];
  alt = json['alt'];
  folder =
      json['folder'] != null ? PhotoFolderDTO.fromJson(json['folder']) : null;
}