Skip to content

Получение профиля на основе различных данных#557

Merged
KriseevM merged 10 commits into
developfrom
feature/556
Sep 29, 2025
Merged

Получение профиля на основе различных данных#557
KriseevM merged 10 commits into
developfrom
feature/556

Conversation

@Namxobick
Copy link
Copy Markdown
Member

resolves #556

Comment thread lib/core/models/schedule/subject.dart Outdated
Comment on lines +105 to +106
static String _getString(Map<String, dynamic> jsonMap, String key) =>
jsonMap[key] as String? ?? '';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мб вынести в какой-то отдельный файл? мне кажется в других местах этот метод может быть полезен

@Namxobick Namxobick requested a review from KriseevM September 25, 2025 20:52
Comment thread lib/core/misc/json/json_utils.dart
Comment thread lib/core/misc/json/json_utils.dart Outdated
///
/// Если ключ отсутствует, значение `null` или не может быть приведено к типу [T],
/// возвращается [defaultValue].
T getValue<T>(Map<String, dynamic> json, String key, T defaultValue) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
T getValue<T>(Map<String, dynamic> json, String key, T defaultValue) {
T getValueFromJson<T>(Map<String, dynamic> json, String key, T defaultValue) {

Comment thread lib/core/misc/json/json_utils.dart Outdated
///
/// Если [key] отсутствует в карте, значение по ключу равно `null` или не является
/// строкой ([String]), функция возвращает пустую строку (`''`).
String getString(Map<String, dynamic> json, String key) =>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
String getString(Map<String, dynamic> json, String key) =>
String getStringFromJson(Map<String, dynamic> json, String key) =>

Comment thread lib/core/misc/json/json_utils.dart Outdated
@KriseevM KriseevM merged commit 12c404a into develop Sep 29, 2025
4 checks passed
@KriseevM KriseevM deleted the feature/556 branch September 29, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Получение профиля на основе различных данных

3 participants