factory ImageConfigError.fromJson(Map<String, dynamic> json) { return ImageConfigError( errorCode: json['ErrorCode'] as String?, message: json['Message'] as String?, ); }