toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (id != null) {
json[r'id'] = id;
}
if (oauthID != null) {
json[r'oauthID'] = oauthID;
}
json[r'name'] = name;
if (status != null) {
json[r'status'] = status;
}
if (links != null) {
json[r'links'] = links;
}
if (role != null) {
json[r'role'] = role;
}
return json;
}