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