toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (userId != null) {
    json[r'userId'] = userId;
  }
  json[r'read'] = read;
  json[r'write'] = write;
  json[r'administration'] = administration;
  return json;
}