ToolParameterKeyMatchInstance.fromJson constructor

ToolParameterKeyMatchInstance.fromJson(
  1. Object? j
)

Implementation

factory ToolParameterKeyMatchInstance.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ToolParameterKeyMatchInstance(
    prediction: switch (json['prediction']) {
      null => null,
      Object $1 => decodeString($1),
    },
    reference: switch (json['reference']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}