mapFromJson static method

Map<String, OnboardingResponse?> mapFromJson(
  1. dynamic json
)

Implementation

static Map<String, OnboardingResponse?> mapFromJson(dynamic json) {
  final map = <String, OnboardingResponse?>{};
  if (json is Map && json.isNotEmpty) {
    json.cast<String, dynamic>().forEach((key, dynamic value) =>
        map[key] = OnboardingResponse.fromJson(value));
  }
  return map;
}