FindNearest.fromJson constructor

FindNearest.fromJson(
  1. Map json_
)

Implementation

FindNearest.fromJson(core.Map json_)
    : this(
        distanceMeasure: json_.containsKey('distanceMeasure')
            ? json_['distanceMeasure'] as core.String
            : null,
        limit: json_.containsKey('limit') ? json_['limit'] as core.int : null,
        queryVector: json_.containsKey('queryVector')
            ? Value.fromJson(
                json_['queryVector'] as core.Map<core.String, core.dynamic>)
            : null,
        vectorField: json_.containsKey('vectorField')
            ? FieldReference.fromJson(
                json_['vectorField'] as core.Map<core.String, core.dynamic>)
            : null,
      );