toJson method
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> jsonObject = {};
if (active != null) {
jsonObject['active'] = {'directive': _determineDirectiveString(active!)};
}
if (suspended != null) {
jsonObject['suspended'] = {
'directive': _determineDirectiveString(suspended!)
};
}
if (revoked != null) {
jsonObject['revoked'] = {
'directive': _determineDirectiveString(revoked!)
};
}
return jsonObject;
}