BoardAdminsBean.fromJson constructor

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

Implementation

factory BoardAdminsBean.fromJson(Map<String, Object?> json) {
  return BoardAdminsBean(
    users: (json[r'users'] as List<Object?>?)
            ?.map((i) => BoardAdminsBeanUsersItem.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    groups: (json[r'groups'] as List<Object?>?)
            ?.map((i) => BoardAdminsBeanGroupsItem.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}