RagFileParsingConfig_LayoutParser.fromJson constructor

RagFileParsingConfig_LayoutParser.fromJson(
  1. Object? j
)

Implementation

factory RagFileParsingConfig_LayoutParser.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return RagFileParsingConfig_LayoutParser(
    processorName: switch (json['processorName']) {
      null => '',
      Object $1 => decodeString($1),
    },
    maxParsingRequestsPerMin: switch (json['maxParsingRequestsPerMin']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
    globalMaxParsingRequestsPerMin:
        switch (json['globalMaxParsingRequestsPerMin']) {
          null => 0,
          Object $1 => decodeInt($1),
        },
  );
}