Initializes a platform from the given platform data.
1 platformData data
the data to initialize it from.
1 platform
the platform object.