GetEncodedResponseResult.fromJson constructor

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

Implementation

factory GetEncodedResponseResult.fromJson(Map<String, dynamic> json) {
  return GetEncodedResponseResult(
    body: json.containsKey('body') ? json['body'] as String : null,
    originalSize: json['originalSize'] as int,
    encodedSize: json['encodedSize'] as int,
  );
}