mirror of
https://github.com/rainloreley/shlink-manager.git
synced 2024-11-14 15:23:02 +01:00
12 lines
430 B
Dart
12 lines
430 B
Dart
|
class ShortURL_Meta {
|
||
|
DateTime? validSince;
|
||
|
DateTime? validUntil;
|
||
|
int? maxVisits;
|
||
|
|
||
|
ShortURL_Meta(this.validSince, this.validUntil, this.maxVisits);
|
||
|
|
||
|
ShortURL_Meta.fromJson(Map<String, dynamic> json):
|
||
|
validSince = json["validSince"] != null ? DateTime.parse(json["validSince"]) : null,
|
||
|
validUntil = json["validUntil"] != null ? DateTime.parse(json["validUntil"]) : null,
|
||
|
maxVisits = json["maxVisits"];
|
||
|
}
|