CivitaImage.fromJson constructor

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

Implementation

CivitaImage.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  url = json['url'];
  hash = json['hash'];
  width = double.parse('${json['width']}');
  height = double.parse('${json['height']}');
  nsfw = json['nsfw'];
  nsfwLevel = json['nsfwLevel'];
  createdAt = json['createdAt'];
  postId = json['postId'];
  stats = CivitaStats.fromJson(json['stats']);
  meta = json['meta'];
  username = json['username'];
}