Precondition.fromJson constructor

Precondition.fromJson(
  1. Object? j
)

Implementation

factory Precondition.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Precondition(
    exists: switch (json['exists']) {
      null => null,
      Object $1 => decodeBool($1),
    },
    updateTime: switch (json['updateTime']) {
      null => null,
      Object $1 => Timestamp.fromJson($1),
    },
  );
}