fromJson static method

AppPropsEntity fromJson(
  1. Map<String, dynamic> json
)

Implementation

static AppPropsEntity fromJson(Map<String, dynamic> json) => AppPropsEntity(
      colorStyles: _colorMapper.listFromJson(json['colors']),
      textStyles: _textMapper.listFromJson(json['texts']),
      customFonts: (json['fonts'] as List<dynamic>? ?? [])
          .map<CustomFontEntity>((e) => CustomFontEntity.fromJson(e))
          .toList(),
      apiRequests: (json['apis'] as List<dynamic>? ?? [])
          .map<APIRequestEntity>((e) => APIRequestEntity.fromJson(e))
          .toList(),
      models: (json['models'] as List<dynamic>? ?? [])
          .map<ModelEntity>(
              (e) => ModelEntity.fromJson(e, getIt<ActionMapper>()))
          .toList(),
      cubits: (json['cubits'] as List<dynamic>? ?? [])
          .map<CubitEntity>((e) => CubitEntity.fromJson(e))
          .toList(),
    );