toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'role_keys'] = this.roleKeys;
  if (this.defaultRoleKey != null) {
    json[r'default_role_key'] = this.defaultRoleKey;
  } else {
    json[r'default_role_key'] = null;
  }
  if (this.creatorRoleKey != null) {
    json[r'creator_role_key'] = this.creatorRoleKey;
  } else {
    json[r'creator_role_key'] = null;
  }
  return json;
}