toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (name != null) {
    _json[r'name'] = name;
  }
  if (roles != null) {
    _json[r'roles'] = roles;
  }
  return _json;
}