Group.fromJson constructor

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

Implementation

factory Group.fromJson(Map<String, Object?> json) {
  return Group(
    type: GroupType.fromValue(json[r'type'] as String? ?? ''),
    name: json[r'name'] as String? ?? '',
    id: json[r'id'] as String? ?? '',
    links: json[r'_links'] != null
        ? GenericLinks.fromJson(json[r'_links']! as Map<String, Object?>)
        : null,
  );
}