toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.expiry != null) {
json[r'expiry'] = this.expiry!.toUtc().toIso8601String();
} else {
json[r'expiry'] = null;
}
return json;
}