CachedImageModel.fromJson constructor

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

Implementation

factory CachedImageModel.fromJson(Map<String, dynamic> json) {
  return CachedImageModel(
    id: json['id'] ?? 0,
    filename: json['filename'],
    data: base64Decode(json['data']),
    createdAt: json['createdAt'],
    futureRefresh: json['futureRefresh'],
  );
}