factory ErrorInfo.fromJson(Map<String, dynamic> json) { return ErrorInfo( message: json['Message'] as String?, type: (json['Type'] as String?)?.toIngestionErrorType(), ); }