toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'name'] = this.name;
  json[r'key'] = this.key;
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.permissions != null) {
    json[r'permissions'] = this.permissions;
  } else {
    json[r'permissions'] = null;
  }
  if (this.includeInInitialRoleSet != null) {
    json[r'include_in_initial_role_set'] = this.includeInInitialRoleSet;
  } else {
    json[r'include_in_initial_role_set'] = null;
  }
  return json;
}