$language->toArray()
Returns the most important properties as array
$language->toArray(): array{code: string, default: bool, direction: ('ltr'|'rtl'), hasCustomDomain: bool, locale: array, name: string, rules: array, url: string}
Return type
array{code: string, default: bool, direction: ('ltr'|'rtl'), hasCustomDomain: bool, locale: array<int|string, string>, name: string, rules: array<string, string>, url: string}