toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'originalAsset': originalAsset.toJson(),
      'optimizedSize': optimizedSize,
      'savedBytes': savedBytes,
      'optimizedAt': optimizedAt.toIso8601String(),
      'savingsPercentage': savingsPercentage,
    };