toJson method
Implementation
Map<String, dynamic> toJson() {
final result = <String, dynamic>{};
if (id != null) {
result['id'] = id;
}
if (custom != null) {
result['custom'] = custom;
}
if (locale != null) {
result['locale'] = locale;
}
if (role != null) {
result['role'] = role;
}
return result;
}