FeatureViewSync.fromJson constructor

FeatureViewSync.fromJson(
  1. Object? j
)

Implementation

factory FeatureViewSync.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FeatureViewSync(
    name: switch (json['name']) {
      null => '',
      Object $1 => decodeString($1),
    },
    createTime: switch (json['createTime']) {
      null => null,
      Object $1 => protobuf.Timestamp.fromJson($1),
    },
    runTime: switch (json['runTime']) {
      null => null,
      Object $1 => Interval.fromJson($1),
    },
    finalStatus: switch (json['finalStatus']) {
      null => null,
      Object $1 => Status.fromJson($1),
    },
    syncSummary: switch (json['syncSummary']) {
      null => null,
      Object $1 => FeatureViewSync_SyncSummary.fromJson($1),
    },
    satisfiesPzs: switch (json['satisfiesPzs']) {
      null => false,
      Object $1 => decodeBool($1),
    },
    satisfiesPzi: switch (json['satisfiesPzi']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}