ProfilePhoto.fromJson constructor

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

Parse from a json

Implementation

factory ProfilePhoto.fromJson(Map<String, dynamic> json) => ProfilePhoto(
      id: int.parse(json['id']),
      small: File.fromJson(json['small']),
      big: File.fromJson(json['big']),
      minithumbnail: json['minithumbnail'] == null
          ? null
          : Minithumbnail.fromJson(json['minithumbnail']),
      hasAnimation: json['has_animation'],
      isPersonal: json['is_personal'],
    );