Skip to content

Instantly share code, notes, and snippets.

@vitorventurin
Created January 17, 2017 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitorventurin/76e857ad50524a29fe40ba7c546201f7 to your computer and use it in GitHub Desktop.
Save vitorventurin/76e857ad50524a29fe40ba7c546201f7 to your computer and use it in GitHub Desktop.
//
// Place.swift
//
// Created by Vitor Venturin Linhalis on 27/11/16.
// Copyright © 2016 Vitor Venturin Linhalis. All rights reserved.
//
import Foundation
import Mapper
struct Result : Mappable {
var nextPageToken: String?
var places: [Place]?
var status: String!
init(map: Mapper) throws {
nextPageToken = map.optionalFrom("next_page_token")
places = map.optionalFrom("results")
try status = map.from("status")
}
init() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment