FoundGroups.fromJson constructor

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

Implementation

factory FoundGroups.fromJson(Map<String, Object?> json) {
  return FoundGroups(
    groups: (json[r'groups'] as List<Object?>?)
            ?.map((i) =>
                FoundGroup.fromJson(i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    header: json[r'header'] as String?,
    total: (json[r'total'] as num?)?.toInt(),
  );
}