dfd

mail@pastecode.io avatar
unknown
dart
a year ago
463 B
3
Indexable
class Results {
  String? id;
  String? name;

  Results({this.id, this.name});

  Results.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    return data;
  }

  @override
  String toString() {
    return 'Results{id: $id, name: $name}';
  }
}