ImagekitResponse.fromJson constructor

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

Implementation

ImagekitResponse.fromJson(Map<String, dynamic> json) {
  fileId = json['fileId'];
  name = json['name'];
  size = json['size'];
  versionInfo = json['versionInfo'] != null
      ? VersionInfo.fromJson(json['versionInfo'])
      : null;
  filePath = json['filePath'];
  url = json['url'];
  fileType = json['fileType'];
  height = json['height'];
  width = json['width'];
  thumbnailUrl = json['thumbnailUrl'];
  if (json['AITags'] != null) {
    aITags = <AITags>[];
    json['AITags'].forEach((v) {
      aITags!.add(AITags.fromJson(v));
    });
  }
}