ImageState.fromJson constructor

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

Implementation

factory ImageState.fromJson(Map<String, dynamic> json) {
  return ImageState(
    reason: json['reason'] as String?,
    status: (json['status'] as String?)?.toImageStatus(),
  );
}