OptimizationResult.fromJson constructor

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

Implementation

factory OptimizationResult.fromJson(Map<String, dynamic> json) =>
    OptimizationResult(
      originalAsset: AssetInfo.fromJson(json['originalAsset']),
      optimizedSize: json['optimizedSize'],
      savedBytes: json['savedBytes'],
      optimizedAt: DateTime.parse(json['optimizedAt']),
    );