CreateFeatureViewRequest.fromJson constructor

CreateFeatureViewRequest.fromJson(
  1. Object? j
)

Implementation

factory CreateFeatureViewRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CreateFeatureViewRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    featureView: switch (json['featureView']) {
      null => null,
      Object $1 => FeatureView.fromJson($1),
    },
    featureViewId: switch (json['featureViewId']) {
      null => '',
      Object $1 => decodeString($1),
    },
    runSyncImmediately: switch (json['runSyncImmediately']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}