Unexpected token error


I understand the below code is not support in ionic 2, but this is the sample I get from Ionic 2 segment component.
I need the advice on how to translate the code to ionic 2 .js file?

export class BasicPage {       
      pet: string = "puppies";       
      isAndroid: boolean = false;  
      constructor(platform: Platform) {
        this.isAndroid = platform.is('android');

import {Platform} from 'ionic-angular';

export class BasicPage{
static get parameters(){
return [[Platform]];
this.isAndroid = platform.is(‘android’);;
this.pet = “puppies”;