SetDefaultLevelsRequest.fromJson constructor

SetDefaultLevelsRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SetDefaultLevelsRequest.fromJson(Map<String, Object?> json) {
  return SetDefaultLevelsRequest(
    defaultValues: (json[r'defaultValues'] as List<Object?>?)
            ?.map((i) => DefaultLevelValue.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}