FeatureValue.fromJson constructor

FeatureValue.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FeatureValue.fromJson(Map<String, dynamic> json) {
  return FeatureValue(
    boolValue: json['boolValue'],
    doubleValue: decodeDouble(json['doubleValue']),
    int64Value: decodeInt64(json['int64Value']),
    stringValue: json['stringValue'],
    boolArrayValue: decode(json['boolArrayValue'], BoolArray.fromJson),
    doubleArrayValue: decode(json['doubleArrayValue'], DoubleArray.fromJson),
    int64ArrayValue: decode(json['int64ArrayValue'], Int64Array.fromJson),
    stringArrayValue: decode(json['stringArrayValue'], StringArray.fromJson),
    bytesValue: decodeBytes(json['bytesValue']),
    structValue: decode(json['structValue'], StructValue.fromJson),
    metadata: decode(json['metadata'], FeatureValue_Metadata.fromJson),
  );
}