Files
flutter_wisetronic/lib/models/text_value.dart
2021-08-31 13:28:33 -04:00

21 lines
352 B
Dart

import 'dart:convert';
class TextValue {
String text;
int value;
TextValue.fromJson(Map<String, dynamic> json)
: text = json['text'],
value = int.parse(json['value'].toString());
Map<String, dynamic> toJson() => {
'text': text,
'value': value
};
@override
String toString() {
return json.encode(this);
}
}