func date(fromKey key: String) throws -> Date {
    switch fields[key] {
    case let .date(value):
      return value