List<T>? deserializeList<T>(List? docs) => docs != null ? List<T>.from(docs.map<dynamic>((dynamic obj) => fromJson<T>(obj))) : null;