WarningCollection.fromJson constructor

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

Implementation

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