toValue method
Implementation
String toValue() {
  switch (this) {
    case Platform.windows:
      return 'Windows';
    case Platform.linux:
      return 'Linux';
  }
}String toValue() {
  switch (this) {
    case Platform.windows:
      return 'Windows';
    case Platform.linux:
      return 'Linux';
  }
}