FoundGroup.fromJson constructor

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

Implementation

factory FoundGroup.fromJson(Map<String, Object?> json) {
  return FoundGroup(
    groupId: json[r'groupId'] as String?,
    html: json[r'html'] as String?,
    labels: (json[r'labels'] as List<Object?>?)
            ?.map((i) =>
                GroupLabel.fromJson(i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    name: json[r'name'] as String?,
  );
}