MatrixImageFileResizedResponse.fromJson constructor

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

Implementation

factory MatrixImageFileResizedResponse.fromJson(
  Map<String, dynamic> json,
) =>
    MatrixImageFileResizedResponse(
      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'],
    );