SDNImageFileResizedResponse.fromJson constructor

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

Implementation

factory SDNImageFileResizedResponse.fromJson(
  Map<String, dynamic> json,
) =>
    SDNImageFileResizedResponse(
      bytes: Uint8List.fromList(
          (json['bytes'] as Iterable<dynamic>).whereType<int>().toList()),
      width: json['width'],
      height: json['height'],
      originalHeight: json['originalHeight'],
      originalWidth: json['originalWidth'],
      blurhash: json['blurhash'],
    );