ImageConfigResponse.fromJson constructor

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

Implementation

factory ImageConfigResponse.fromJson(Map<String, dynamic> json) {
  return ImageConfigResponse(
    error: json['Error'] != null
        ? ImageConfigError.fromJson(json['Error'] as Map<String, dynamic>)
        : null,
    imageConfig: json['ImageConfig'] != null
        ? ImageConfig.fromJson(json['ImageConfig'] as Map<String, dynamic>)
        : null,
  );
}