You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
651 B
Dart
26 lines
651 B
Dart
import 'package:test_sa/models/base.dart';
|
|
|
|
class PenguinSiteModel extends Base {
|
|
int? id;
|
|
String? label;
|
|
bool? isMapped;
|
|
|
|
PenguinSiteModel({this.id, this.label}) : super(identifier: id?.toString(), name: label);
|
|
|
|
PenguinSiteModel.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
identifier = json['id']?.toString();
|
|
label = json['label'];
|
|
name = json['label'];
|
|
isMapped = json['isMapped'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['label'] = this.label;
|
|
data['isMapped'] = this.isMapped;
|
|
return data;
|
|
}
|
|
}
|