FeatureViewDataKey_CompositeKey.fromJson constructor

FeatureViewDataKey_CompositeKey.fromJson(
  1. Object? j
)

Implementation

factory FeatureViewDataKey_CompositeKey.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FeatureViewDataKey_CompositeKey(
    parts: switch (json['parts']) {
      null => [],
      List<Object?> $1 => [for (final i in $1) decodeString(i)],
      _ => throw const FormatException('"parts" is not a list'),
    },
  );
}