toValue method
Implementation
String toValue() {
switch (this) {
case Platform.osx:
return 'OSX';
case Platform.windows:
return 'WINDOWS';
case Platform.linux:
return 'LINUX';
case Platform.objc:
return 'OBJC';
case Platform.swift:
return 'SWIFT';
case Platform.android:
return 'ANDROID';
case Platform.javascript:
return 'JAVASCRIPT';
}
}